package com.projectY.settings;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;

public class Settings {

	public static Connection conn = null;
	public Settings ()//throws SQLException, ClassNotFoundException
	{
		if(conn==null)
		{
		 
			try {
				Class.forName("com.mysql.jdbc.Driver");
		
		 conn =
			       DriverManager.getConnection("jdbc:mysql://localhost/projectY","root","");
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		
		}
		else
			System.out.println("Conn already initialized");
		
	}
	public static void main(String we[])
	{
		System.out.println(new java.util.Date().getTime());
	}
}
